package yanjunwei.rbac.service;

import yanjunwei.rbac.domain.dto.BaseDto;

import yanjunwei.rbac.domain.entity.BaseEntity;

import yanjunwei.rbac.domain.vo.Result;

public interface      IBaseService <Entity extends BaseEntity,Dto extends BaseDto>{
    boolean existsById(int id);

    Entity findById(int id);

    Result list();

    Result create(Dto dto);

    Result update(Dto dto,int id);
}
